# -*- coding:utf-8 -*-
# @Author: shenyuyu
# @Time: 2023/6/30 11:04
# @File: qu_3_spark_jdbc.py
from pyhive import hive

if __name__ == '__main__':
    conn = hive.Connection(host="hadoop1", port=10000, username="root")

    cursor = conn.cursor()

    cursor.execute("select * from gam")

    result = cursor.fetchall()

    print(result)
